package com.efast.cafe.portal.dao.query;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.efast.cafe.portal.bean.query.FieldTypeBean;
import com.efast.cafe.portal.bean.query.FieldTypeOpBean;
import com.efast.cafe.portal.entity.query.FieldOp;
import com.efast.cafe.portal.entity.query.FieldType;

public interface FieldTypeDao {
	
	 int addFieldType(FieldType fieldType);
	 
	 int deleteFieldType(@Param(value="fieldTypeid") Integer id);
	
	 int addFieldOp(FieldOp fieldOp);
	 
	 int deleteFieldOp(@Param(value="fieldOpId")Integer id);
	 
	 List<FieldTypeBean> selectFieldTypeById(@Param(value="filedTypeId")Integer filedTypeId);
	 
	 List<FieldTypeOpBean> selectOpbyFieldTypeId(@Param(value="filedTypeId") Integer fieldTypeId);
	 
	 int selectOpCountByFieldTypeId(@Param(value="filedTypeId")Integer fieldTypeId);
}
